package com.ruicar.afs.cloud.afscase.approvemakelabel.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruicar.afs.cloud.afscase.approvemakelabel.entity.LoanLabelInfo;
import com.ruicar.afs.cloud.afscase.approvemakelabel.mapper.LoanLabelInfoMapper;
import com.ruicar.afs.cloud.afscase.approvemakelabel.service.LoanLabelInfoService;
import com.ruicar.afs.cloud.afscase.approvemakelabel.vo.ApproveMake;
import com.ruicar.afs.cloud.afscase.loanapprove.task.vo.LoanApproveTaskVO;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import java.util.List;


/**
 * @author jiaqi.guo
 * @version 1.0
 * @created 2020/5/19 11:40
 */
@Service
@AllArgsConstructor
@Data
@Slf4j
public class LoanLabelInfoServiceImpl extends ServiceImpl<LoanLabelInfoMapper, LoanLabelInfo> implements LoanLabelInfoService {
    //根据多标签名称模糊查询
    public List<ApproveMake> queryLabelByNameList(List list) {
        return baseMapper.queryLabelByNameList(list);
    }

    //根据申请编号查询放款标签信息
    public List<LoanLabelInfo> queryLoanLabelByApplyNo(String applyNo) {
        return baseMapper.queryLoanLabelByApplyNo(applyNo);
    }

    //查询所有标签名称列表
    public List<LoanLabelInfo> getLabelList() {
        return baseMapper.getLabelList();
    }

    //查询所有车辆品牌名称列表
    public List<LoanApproveTaskVO> getBrandNameList() {
        return baseMapper.getBrandNameList();
    }

}
